<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>员工管理</title>
    <link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="JavaScript1.2"
            src="${pageContext.request.contextPath}/js/stm31.js"></script>
    <script>
        function windowOpen(theURL, winName, features, width, hight, scrollbars, top, left) {
            var parameter = "top=" + top + ",left=" + left + ",width=" + width + ",height=" + hight;
            if (scrollbars == "no") {
                parameter += ",scrollbars=no";
            } else {
                parameter += ",scrollbars=yes";
            }
            window.open(theURL, winName, parameter);
        }

        function xiugai() {
            alert("修改成功！！！");
        }
    </script>
    <SCRIPT language=JavaScript type=text/JavaScript>

        function selectAllByChk(chk, checkbox) {
            var size = checkbox.length;
            if (size == null)
                checkbox.checked = chk.checked;
            else {
                for (i = 0; i < checkbox.length; i++) {
                    checkbox[i].checked = chk.checked;
                }
            }
        }

    </SCRIPT>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form action="${pageContext.request.contextPath}/personnel/update" method="post">
    <center>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="25" align="center" valign="bottom" class="td06">
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="2%" valign="middle" background="../../images/bg_03.gif">&nbsp;</td>
                            <td width="2%" valign="middle" background="../../images/bg_03.gif"><img
                                    src="../../images/main_28.gif" width="9" height="9" align="absmiddle"></td>
                            <td height="30" valign="middle" background="../../images/bg_03.gif">
                                <div align="left"><font color="#FFFFFF">员工修改</font></div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br>
        <table width="95%" border="0" cellpadding="0" cellspacing="0" class="td_page">
            <tr>
                <input type="text" name="ID" value="${users.ID}" style="display: none"/>
                <td width="10%" height="30" align="left">员工编码</td>
                <td width="40%" height="30">${users.ID}</td>
                <td width="10%" align="left">&nbsp;</td>
                <td width="40%">&nbsp;</td>
            </tr>
            <tr>
                <td width="10%" height="30" align="left">用户姓名</td>
                <td width="40%" height="30"><input required name="nickname" type="text" class="input" style="width:95% "
                                                   value="${users.nickname}">
                </td>
                <td width="10%" align="left">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</td>
                <td width="40%">
                    <select name="sex" size="1" class="box" style="width:95%">
                        <option value="男" <c:if test="${users.sex=='男'}">selected</c:if>>男</option>
                        <option value="女" <c:if test="${users.sex=='女'}">selected</c:if>>女</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="left">登陆帐号</td>
                <td width="40%" height="30"><input required name="username" type="text" class="input" style="width:95% "
                                                   value="${users.username}"></td>
                <td width="10%" align="left">登陆密码</td>
                <td width="40%" valign="middle"><input required name="password" type="password" class="input"
                                                       style="width:95% "
                                                       value="${users.password}">
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="left"> 所属部门</td>
                <td width="40%" height="30"><font>
                    <select name="logoncount" size="1" class="box" style="width:95%">
                        <c:forEach items="${departments}" var="department">
                            <option value="${department.ID}"
                                    <c:if test="${department.ID==users.logoncount}">selected</c:if>>${department.depname}</option>
                        </c:forEach>
                    </select>
                </font></td>
                <td width="10%" align="left"> 职 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务</td>
                <td width="40%" valign="middle">
                    <select name="mobile" size="1" class="box" style="width:95%">
                        <c:forEach items="${user_dutyDaos}" var="user_dutyDao">
                            <option value="${user_dutyDao.ID}"
                                    <c:if test="${user_dutyDao.ID==users.mobile}">selected</c:if>>${user_dutyDao.name}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <!-- <tr>
              <td width="10%" height="30" align="left"> 直属上级</td>
              <td width="40%" height="30"><font>
                <select name="fldSex" size="1" class="box" style="width:95%">
                  <option value="人事部经理" selected>人事部经理 </option>
                  <option value="人事部主任">人事部主任 </option>
                </select>
              </font></td>
              <td width="10%" align="left"> 内部邮件</td>
              <td width="40%" valign="middle"><input name="queryName" type="text" class="input" style="width:95% " value="zhangsan@163.com">
              </td>
            </tr> -->
            <tr>
                <td width="10%" height="30" align="left"> 外部邮件</td>
                <td width="40%" height="30"><font>
                    <input name="email" type="text" class="input" style="width:95% " value="${users.email}">
                </font></td>
                <td width="10%" align="left">移动电话</td>
                <td width="40%" valign="middle"><input name="phone" type="text" class="input" style="width:95% "
                                                       value="${users.phone}">
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="left">家庭电话</td>
                <td width="40%" height="30"><font>
                    <input name="homephone" type="text" class="input" style="width:95% " value="${users.homephone}">
                </font></td>
                <td width="10%" align="left">办公电话</td>
                <td width="40%" valign="middle"><input name="workphone" type="text" class="input" style="width:95% "
                                                       value="${users.workphone}">
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="left">传真号码</td>
                <td width="40%" height="30"><font>
                    <input name="fax" type="text" class="input" style="width:95% " value="${users.fax}">
                </font></td>
                <td width="10%" align="left">MSN</td>
                <td width="40%" valign="middle"><input name="MSN" type="text" class="input" style="width:95% "
                                                       value="${users.MSN}">
                </td>
            </tr>
            <tr>
                <td width="10%" height="30" align="left"> 生日</td>
                <td width="40%" height="30"><font>
                    <input name="birthday" type="date" class="input" style="width:95% " value="${users.birthday}">
                </font></td>
                <td width="10%" align="left"> 个人主页</td>
                <td width="40%" valign="middle"><input name="httpaddress" type="text" class="input" style="width:95% "
                                                       value="${users.httpaddress}">
                </td>
            </tr>
            <tr>
                <td height="30" colspan="4" align="left"><font>&nbsp; </font>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="10%">通讯地址</td>
                            <td><font>
                                <input name="address" type="text" class="input" style="width:98% "
                                       value="${users.address} ">
                            </font></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="left">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="10%">备注</td>
                            <td><textarea name="content" rows="5" class="box"
                                          style="width:98% ">${users.content}</textarea>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td align="right" class="td_page">
                    <div>
                        <input name="Submit" type="submit" class="buttonface02" onClick="xiugai()" value="  修改  ">
                        &nbsp;
                        <input name="Submit" type="reset" class="buttonface02" value="  重置  "> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="${pageContext.request.contextPath}/personnel/select">返回上一页</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                    </div>
                </td>
            </tr>
        </table>
    </center>
</form>
</body>
</html>

